package com.sht.product.yuea.memberShip.service;

import java.util.Date;
import java.util.List;

import com.sht.common.components.util.DateUtil;
import com.sht.common.components.util.UUIDUtil;
import com.sht.product.yuea.memberShip.dao.IMemberShipDao;
import com.sht.product.yuea.memberShip.entity.MemberShipCard;

public class MemberShipService implements IMemberShipService{
	private IMemberShipDao memberShipDao;
	@Override
	public List<MemberShipCard> getMembershipCardByUserId(String userID) {
		return memberShipDao.getMemberShipCardByUserId(userID);
	}
	

	@Override
	public MemberShipCard addMemberShipCard(MemberShipCard memberShipCardForInsert) {
		memberShipDao.insert(memberShipCardForInsert);
		return memberShipCardForInsert;
	}
	
	
	public IMemberShipDao getMemberShipDao() {
		return memberShipDao;
	}
	public void setMemberShipDao(IMemberShipDao memberShipDao) {
		this.memberShipDao = memberShipDao;
	}


	@Override
	public List<MemberShipCard> getAll(MemberShipCard memberShipCard) {
		return memberShipDao.selectByCondition(memberShipCard);
	}
	@Override
	public Integer countByCondition(MemberShipCard memberShipCard) {
		return memberShipDao.countByCondition(memberShipCard);
	}
	
}
